package org.momin.dao.impl;

import java.util.List;

import org.momin.bean.Systems;
import org.momin.bean.UserInfo;
import org.momin.dao.UserInfoDao;
import org.momin.mapper.UserInfoMapper;
import org.momin.tools.DBTools;

public class UserInfoDaoImpl implements UserInfoDao {
	UserInfoMapper mapper=DBTools.getSqlSession().getMapper(UserInfoMapper.class);
	@Override
	public UserInfo getUserByNameAndPwd(String name, String pwd) {
		return mapper.getUserByNameAndPwd(name, pwd);
	}
	@Override
	public List<Systems> getSystemsByRolesId(int rid) {
		
		return mapper.getSystemsByRolesId(rid);
	}

}
